$OpenBSD: patch-libgtklp_libgtklp_c,v 1.3 2015/01/16 11:28:42 ajacoutot Exp $

http://bugs.debian.org/644113

--- libgtklp/libgtklp.c.orig	Wed Feb 26 20:31:06 2014
+++ libgtklp/libgtklp.c	Fri Jan 16 12:03:18 2015
@@ -554,7 +554,7 @@ void passwin_response_ok(GtkEditable *editable, gpoint
 
 const char *getPass (const char *prompt)
 {
-  GtkWidget *vbox, *hbox, *hbox1, *vbox1, *vbox2, *labell, *labelp, *yes, *no;
+  GtkWidget *vbox, *hbox, *vbox1, *vbox2, *labell, *labelp;
 	gint gi1;
 #if GTK_MAJOR_VERSION == 1
 	GtkWidget *sep,*passwin;
@@ -780,9 +780,6 @@ void exitOnError(char *gerror1, char *gerror2, int exi
 	GtkWidget *exitErrorDialog;
 	GtkWidget *hbox,*label,*pixmapwid;
 	char tmplabel[MAXLINE+1];
-	GtkStyle *style;
-	GdkPixmap *pixmap;
-	GdkBitmap *mask;
 #if GTK_MAJOR_VERSION == 1
 	GtkWidget *button,*vbox,*sep,*bbox;
 #endif
@@ -826,9 +823,9 @@ void exitOnError(char *gerror1, char *gerror2, int exi
 		gtk_widget_show(pixmapwid);
 
 		if(strlen(gerror2) == 0)
-			snprintf(tmplabel,(size_t)MAXLINE,gerror1);
+			snprintf(tmplabel,(size_t)MAXLINE,"%s",gerror1);
 		else
-			snprintf(tmplabel,(size_t)MAXLINE,gerror1,gerror2);
+			snprintf(tmplabel,(size_t)MAXLINE,"%s\n%s",gerror1,gerror2);
 		label=gtk_label_new(tmplabel);
 		gtk_box_pack_end(GTK_BOX(hbox),label,FALSE, FALSE,FRAME_SPACING_V);
 		gtk_widget_show(label);
@@ -856,7 +853,7 @@ void exitOnError(char *gerror1, char *gerror2, int exi
 #endif
 	} else {
 		if(strlen(gerror2) == 0)
-			g_warning(gerror1);
+			g_warning("%s",gerror1);
 		else
 			g_warning(gerror1,gerror2);
 	}
